#pragma once

// lib
struct Image {
  int32_t width, height, channels;
  std::vector<uint8_t> data;

  void LoadFromFile(const std::string &path);
  Image SubImage(glm::uvec2 offset, glm::uvec2 extent) const;
};